package smartcode.privacy;

import java.io.Serializable;

/**
 * @author WZ
 * @date 2019/5/23.
 * 严格要求自己，对每一行代码负责
 * description：
 */
public class BaseWebViewData implements Serializable {
    public String title;
    public String content = "";
    public String orderUid;
    public String shopid = "";
    public String areaId = "";
    public int type;//1=自营，2=拉取其他店铺,3=直播协议，4=店铺协议
    public boolean largeSize;
    public boolean isAddBody;
    public int vId;//视频id
    public int bringId;//带货商品
    public int flag;//1=视频带货，2=直播i带货
    public int liveId;//直播id
    public int commerceId;//带货商品
    public String sysCode = "";
    public BaseWebViewData() {
    }

    public BaseWebViewData(String title, String content) {
        this.title = title;
        this.content = content;
    }

    public BaseWebViewData(String title, String content, String orderUid) {
        this.title = title;
        this.content = content;
        this.orderUid = orderUid;
    }
    public BaseWebViewData(String title, int type, String shopid) {
        this.title = title;
        this.type = type;
        this.shopid = shopid;
    }
    public BaseWebViewData(int vId, int bringId, int flag, String sysCode) {
        this.flag = flag;
        this.sysCode = sysCode;
        if(flag == 1){
            this.vId = vId;
            this.bringId = bringId;
        }else if(flag == 2){
            this.liveId = vId;
            this.commerceId = bringId;
        }

    }
}
